import os


class Single(object):
    def __new__(cls, *args, **kwargs):
        if not hasattr(cls, '_instance'):
            cls._instance = object.__new__(cls)
        return cls._instance

    def __init__(self):
        pass


def get_pathfile():
    path = "/".join(os.path.realpath(__file__).split("/")[:-2])
    return path


if __name__ == '__main__':
    a = get_pathfile()
    print(a)
